XSI VBscript to import fbx


dim fbxfile
fbxfile = "C:\MudboxTemp\OUTPUT.fbx"
set fso = CreateObject( "Scripting.FileSystemObject" )
if fso.FileExists(fbxfile) then
   ' First make sure the FBX Import settings are set to skip cameras & lights
   FBXImportCameras True
   FBXImportLights True

   ' Now do the import
   FBXImport fbxfile
else
   Application.LogMessage "Couldn't find " & fbxfile, siWarning
end if




export:


dim fbxfile
fbxfile = "C:\MudboxTemp\OUTPUT.fbx"
set fso = CreateObject( "Scripting.FileSystemObject" )
if fso.FileExists(fbxfile) then
   FBXEExportCameras True
   FBXExportLights True
   FBXExportEmbedMedias True

   ' Now do the import
   FBXExport fbxfile
else
   Application.LogMessage "Couldn't find " & fbxfile, siWarning
end if
